/**
 *
 * Copyright (c) 2011 TLOSS. All rights reserved.
 * Created on Apr 22, 2011
 *
 */
package com.tloss.database.db2obj.mysql;

import com.tloss.database.db2obj.TypeExtractor;

/**
 * @author Tran Tung
 * 
 */
public class MysqlTypeExtractor implements TypeExtractor {

	public String toJavaType(String dataType, String columnType) {
		if("int".equals(dataType)){
			return "Integer";
		}else if("varchar".equals(dataType)||"text".equals(dataType)){
			return "String";
		}else if("float".equals(dataType)){
			return "Float";
		}else if("date".equals(dataType)){
			return "java.util.Date";
		}
		System.out.println(dataType);
		return "int";
	}

}
